package com.java2nb.novel.pay.mapper;

import com.java2nb.novel.pay.entity.MchAppConfig;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.type.JdbcType;
import org.mybatis.dynamic.sql.delete.render.DeleteStatementProvider;
import org.mybatis.dynamic.sql.insert.render.InsertStatementProvider;
import org.mybatis.dynamic.sql.select.render.SelectStatementProvider;
import org.mybatis.dynamic.sql.update.render.UpdateStatementProvider;
import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
import javax.annotation.Generated;
import java.util.List;

@Mapper
public interface MchAppConfigMapper {
    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2023-10-29T15:32:28.198+08:00", comments="Source Table: mch_app_config")
    @SelectProvider(type=SqlProviderAdapter.class, method="select")
    @Results(id = "MchAppConfigResult", value = {
            @Result(column = "mch_no", property = "mchNo", jdbcType = JdbcType.VARCHAR),
            @Result(column = "app_id", property = "appId", jdbcType = JdbcType.VARCHAR),
            @Result(column = "secret_key", property = "secretKey", jdbcType = JdbcType.VARCHAR),
            @Result(column = "mch_status", property = "mchStatus", jdbcType = JdbcType.TINYINT),
            @Result(column = "app_status", property = "appStatus", jdbcType = JdbcType.TINYINT),
            @Result(column = "support_way_codes", property = "supportWayCodes", jdbcType = JdbcType.VARCHAR),
            @Result(column = "create_time", property = "createTime", jdbcType = JdbcType.TIMESTAMP),
            @Result(column = "update_time", property = "updateTime", jdbcType = JdbcType.TIMESTAMP)
    })
    List<MchAppConfig> selectMany(SelectStatementProvider selectStatement);

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2023-10-29T15:32:28.199+08:00", comments="Source Table: mch_app_config")
    @SelectProvider(type=SqlProviderAdapter.class, method="select")
    @ResultMap("MchAppConfigResult")
    MchAppConfig selectOne(SelectStatementProvider selectStatement);

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2023-10-29T15:32:28.199+08:00", comments="Source Table: mch_app_config")
    @InsertProvider(type=SqlProviderAdapter.class, method="insert")
    int insert(InsertStatementProvider<MchAppConfig> insertStatement);

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2023-10-29T15:32:28.199+08:00", comments="Source Table: mch_app_config")
    @UpdateProvider(type=SqlProviderAdapter.class, method="update")
    int update(UpdateStatementProvider updateStatement);

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2023-10-29T15:32:28.199+08:00", comments="Source Table: mch_app_config")
    @DeleteProvider(type=SqlProviderAdapter.class, method="delete")
    int delete(DeleteStatementProvider deleteStatement);

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2023-10-29T15:32:28.199+08:00", comments="Source Table: mch_app_config")
    @SelectProvider(type=SqlProviderAdapter.class, method="select")
    @ResultMap("MchAppConfigResult")
    List<MchAppConfig> select(SelectStatementProvider selectStatement);


}
